package com.github.kotvertolet.youtubejextractor.models.newModels;

import com.google.gson.annotations.SerializedName;
import ohos.utils.Parcel;
import ohos.utils.Sequenceable;

import java.io.Serializable;

public class RemoveFromWatchLaterCommand implements Sequenceable, Serializable {

    @SerializedName("commandMetadata")
    private CommandMetadata commandMetadata;

    @SerializedName("playlistEditEndpoint")
    private PlaylistEditEndpoint playlistEditEndpoint;

    @SerializedName("clickTrackingParams")
    private String clickTrackingParams;



    public static final Sequenceable.Producer<RemoveFromWatchLaterCommand> CREATOR = new Producer<RemoveFromWatchLaterCommand>() {
        @Override
        public RemoveFromWatchLaterCommand createFromParcel(Parcel parcel) {
            // Initialize an instance first, then do customized unmarshlling.
            RemoveFromWatchLaterCommand removeFromWatchLaterCommand = new RemoveFromWatchLaterCommand();
            removeFromWatchLaterCommand.unmarshalling(parcel);
            return removeFromWatchLaterCommand;
        }
    };


    @Override
    public boolean marshalling(Parcel parcel) {
        parcel.writeSequenceable(this.commandMetadata);
        parcel.writeSequenceable(this.playlistEditEndpoint);
        parcel.writeString(this.clickTrackingParams);
        return true;
    }

    @Override
    public boolean unmarshalling(Parcel parcel) {
        parcel.readSequenceable(this.commandMetadata);
        parcel.readSequenceable(this.playlistEditEndpoint);
        this.clickTrackingParams=parcel.readString();
        return true;
    }

    @Override
    public String toString() {
        return "RemoveFromWatchLaterCommand{" +
                "commandMetadata=" + commandMetadata +
                ", playlistEditEndpoint=" + playlistEditEndpoint +
                ", clickTrackingParams='" + clickTrackingParams + '\'' +
                '}';
    }

    public CommandMetadata getCommandMetadata() {
        return commandMetadata;
    }

    public void setCommandMetadata(CommandMetadata commandMetadata) {
        this.commandMetadata = commandMetadata;
    }

    public PlaylistEditEndpoint getPlaylistEditEndpoint() {
        return playlistEditEndpoint;
    }

    public void setPlaylistEditEndpoint(PlaylistEditEndpoint playlistEditEndpoint) {
        this.playlistEditEndpoint = playlistEditEndpoint;
    }

    public String getClickTrackingParams() {
        return clickTrackingParams;
    }

    public void setClickTrackingParams(String clickTrackingParams) {
        this.clickTrackingParams = clickTrackingParams;
    }
}
